﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BookExchange._Default" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
 
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">    
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

        <!-- Danh sách các request -->
      <div class="nta-box4">
            <div class="box4-title">Sách cần bán (<asp:Label ID="lblPostQty" runat="server" Text="0"></asp:Label>)<img src="images/nta/box4/logo-title.png" /></div>

            <div class="box4-content">

                <asp:Repeater runat="server" ID="repPost">
                    <ItemTemplate>

                        <div class="nta-sanpham">
							<a href='detail.aspx?c=<%# Eval("RequestCode") %>'><img alt="" src="<%# Eval("BookUrl") %>"/>
							    <span class="nta-preffix">[Cần bán] </span><%# Eval("BookName") %>
                            </a>
						</div>
						
												<div class="tooltip nta-tooltip-preview">
                                <div class="detail-tooltip">
                                    <h3 class="title-tooltip"> <%# Eval("BookName") %> </h3>
                                    <ul class="nolist">
                                            <li>Giá bìa:<span class="price1-tooltip"  >    <%#Eval("Price1",formatPrice1) %></span></li>
                                            <li> Giá bán:<span class="price1-tooltip"  >  <%#Eval("Price2",formatPrice2) %></span></li>
                                        
                                            <li>Ngày tạo:&nbsp<%#Eval("CreatingDate",formatDate) %></li> 
                                            <li>Số lượng:&nbsp<%#Eval("Quantity",formatQuantity) %></li>
                                            <li>Nơi giao:&nbsp<%#Eval("ExchangePlace") %></li>
                                        </ul>
                                </div>
                                    
                           </div>

                    </ItemTemplate>
                </asp:Repeater>
                <div class="nta-phantrang"> 
                    <div class="search-paging">
                        <webdiyer:aspnetpager cssclass="paginator" currentpagebuttonclass="cpb"
                            id="AspNetPagerPost" runat="server"
                            onpagechanged="AspNetPagerPost_PageChanged"
                            firstpagetext="Trang đầu" lastpagetext="Trang cuối"
                            enabletheming="true" alwaysshowfirstlastpagenumber="True" numericbuttoncount="7">
    </webdiyer:aspnetpager>
                    </div>
                    <div class="nta-xemtatca"> <asp:HyperLink ID="hplRealAllPost" runat="server" CssClass="button-blue radius5px">Xem tất cả</asp:HyperLink></div>
                </div>
            </div>

      </div>

    <!-- Danh sách các Post -->
      <div class="nta-box4">
          <div class="box4-title">Sách cần mua <label class="curious-pointer range ghinho" for="ghinho">
                                        </label>(<asp:Label ID="lblRequestQty" runat="server" Text="0"></asp:Label>)<img src="images/nta/box4/logo-title.png" /></div>
      
            <div class="box4-content">

                <asp:Repeater runat="server" ID="repRequest">
                    <ItemTemplate>

                        <div class="nta-sanpham">
							<a href='detail.aspx?c=<%# Eval("RequestCode") %>'><img alt="" src='<%# Eval("BookUrl") %>'/></a>
							<span class="nta-preffix">[Cần mua] </span><%# Eval("BookName") %>
						</div>
						
												<div class="tooltip nta-tooltip-preview">
                                <div class="detail-tooltip">
                                    <h3 class="title-tooltip"> <%# Eval("BookName") %> </h3>
                                    <ul class="nolist">
                                            <li>Giá bìa:<span class="price1-tooltip"  >    <%#Eval("Price1",formatPrice1) %></span></li>
                                            <li> Giá bán:<span class="price1-tooltip"  >  <%#Eval("Price2",formatPrice2) %></span></li>
                                        
                                            <li>Ngày tạo:&nbsp<%#Eval("CreatingDate",formatDate) %></li> 
                                            <li>Số lượng:&nbsp<%#Eval("Quantity",formatQuantity) %></li>
                                            <li>Nơi giao:&nbsp<%#Eval("ExchangePlace") %></li>
                                        </ul>
                                </div>
                                    
                           </div>

                    </ItemTemplate>
                </asp:Repeater>

                <div class="nta-phantrang">
                    <div class="search-paging">


                        <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb"
                            ID="AspNetPagerRequest" runat="server"
                            OnPageChanged="AspNetPagerRequest_PageChanged"
                            FirstPageText="Trang đầu" LastPageText="Trang cuối"
                            EnableTheming="true" AlwaysShowFirstLastPageNumber="True" NumericButtonCount="7">
                        </webdiyer:AspNetPager>
                    </div>
                    <div class="nta-xemtatca">
                        <asp:HyperLink ID="hplReadAllRequest" runat="server" CssClass="button-blue radius5px">Xem tất cả</asp:HyperLink></div>

                </div>

            </div>          
      
      </div>      

</asp:Content>
